package etc.spec.ytt;

public class Area {
    private int length;
    private int width;
    public Area(int length,int width){
        this.length=length;
        this.width=width;
    }
    public int getArea(){
        return length*width;
    }
    public static void main(String[] args){
        Area a=new Area(23,10);
        int area=a.getArea();
        System.out.println("长方形面积为:"+area);
    }
}
